package com.example.design.b.adapter;

/**
 * 时间戳构建器
 */
public class TimestampBuilder extends DateBuilder implements DateTimestampAdapter {

    @Override
    public TimestampBuilder nowTime() {
        super.now();
        return this;
    }

    @Override
    public TimestampBuilder tomorrowTime() {
        super.tomorrow();
        return this;
    }

    @Override
    public TimestampBuilder yesterdayTime() {
        super.yesterday();
        return this;
    }

    @Override
    public long buildTime() {
        return super.build().getTime();
    }

}
